package com.jcroke.hercules.examples;

public class dString extends Datum {

	public dString() throws DatumException {
		super(String.class, "");
	}
	
	public dString(String value) throws DatumException {
		super(String.class, value);
	}
	
	public dString(Class<String> type, String value) throws DatumException {
		super(type, value);
	}
	
	@Override
	public void concat(Object val) {
		this.value = this.value + (String)val;
		
	}
	
	@Override
	public boolean isNull() {
		return (this.value == null);
	}
	
	@Override
	public boolean isEmpty() {
		return (this.value.equals(""));
	}
	
	@Override
	public void clear() {
		this.value = "";
	}
	
	@Override
	public Class<String> getType() {
		return String.class;
	}
	
	@Override
	public String getValue() {
		return (String)this.value;
	}
}
